const connection = require("../app/database");

class loginService {
  async find(userName) {
    const statement = "SELECT * FROM `user` WHERE name = ?";

    const [findRes] = await connection.execute(statement, [userName]);
    return findRes;
  }
}

module.exports = new loginService();
